﻿#pragma once

#include "../MirControls/MirLabel.h"
#include <string>

using namespace Client::MirControls;

namespace Client::MirObjects
{
    class Damage
    {
    public:
        std::string Text;
        Color *Colour;
        int Distance = 0;
        long long ExpireTime = 0;
        double Factor = 0;
        int Offset = 0;

        MirLabel *DamageLabel;

        virtual ~Damage()
        {
            delete Colour;
            delete DamageLabel;
        }

        Damage(const std::string &text, int duration, Color *colour, int distance = 50);

        void Draw(Point *displayLocation);
    };

}
